locks in distributed system